// 路由关映射表.js
// ['admin', [
//     { path: '/orders', name: '订单管理', icon: 'shopping-cart', actions: ['create', 'read', 'update', 'delete'] },
//     { path: '/users', name: '用户管理', icon: 'user', actions: ['create', 'read', 'update', 'delete'] },
//     { path: '/dashboard', name: '仪表盘', icon: 'dashboard', actions: ['read'] },
//     { path: '/production', name: '生产管理', icon: 'factory', actions: ['read'], children: [
//       { path: '/production/process', name: '工序管理', icon: 'settings', actions: ['create', 'read', 'update', 'delete'] },
//       { path: '/production/materials', name: '原料管理', icon: 'box', actions: ['create', 'read', 'update', 'delete'] },
//     ]},
//   ]],
//   ['guest', [
//     { path: '/home', name: '首页', icon: 'home', actions: ['read'] },
//     { path: '/orders', name: '订单管理', icon: 'shopping-cart', actions: ['read'] },
//   ]],
const routeMap = {
    routerView: {
      component: () => import('@/components/RouteView.vue') 
    },
    orders: {
      component: () => import('@/views/OrderListPage.vue')
    },
    dashboard: {
      component: () => import('@/views/DashboardPage.vue')
    },
    users: {
      component: () => import('@/views/UserListPage.vue')
    },
    process: {
      component: () => import('@/views/ProcessListPage.vue')
    },
    materials: {
      component: () => import('@/views/MaterialListPage.vue')  
    },
    layout: {
      component: () => import('@/layout/index.vue')  
    },
    LoginPage: {
      component: () => import('@/views/LoginPage.vue')
    },
    WelcomePage: {
      component: () => import('@/views/WelcomePage.vue')
    },
    OutpatientPatient: {
      component: () => import('@/views/OutpatientPatient.vue')
    },
    PatientRegistration: {
      component: () => import('@/views/PatientRegistration.vue')
    },
    OutpatientMedicalRecord: {
      component: () => import('@/views/OutpatientMedicalRecord.vue')
    },
    InpatientPatient: {
      component: () => import('@/views/InpatientPatient.vue')
    },
    PatientAdmission: {
      component: () => import('@/views/PatientAdmission.vue')
    },
    DoctorOrderManagement: {
      component: () => import('@/views/DoctorOrderManagement.vue')
    }
  };
  
  export default routeMap;